//
//  APILogOn.h
//  Bracelet
//
//  Created by jing zhao on 2/16/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "APIConnection.h"

#import <AFNetworking/AFNetworking.h>

@interface APILogOnDeparment : NSObject

@property (strong, nonatomic)NSMutableArray *arrayDepartementId;
@property (strong, nonatomic)NSMutableArray *arrayDepartmentName;

+(instancetype)apiDeparmentWithArray:(NSArray*)array;
@end

@interface APILogOnCity:NSObject

@property (strong, nonatomic)NSMutableArray *arrayCityId;
@property (strong, nonatomic)NSMutableArray *arrayCityEnglishName;
@property (strong, nonatomic)NSMutableArray *arrayCityChineseName;

+(instancetype)apiCityWithArray:(NSArray*)array;
@end

@interface APILogOn : NSObject
+(void)setApiLogOnWithUserName:(NSString*)userNameTemp
                 andWithCityId:(NSString*)cityIdTemp
                   andBranchId:(NSString*)branchIdTemp
               andDepartmentId:(NSString*)departmentIdTemp
                   andMobileId:(NSString*)mobileIdTemp
                         success:(void (^)(APILogOn *logOn)) successBlock
                      failure:(void (^)( NSError *error)) failureBlock;

+(void)getTheCitywithSuccess:(void (^)(APILogOnCity *logOncity)) successBlock
                     failure:(void (^)( NSError *error)) failureBlock;


+(void)getTheDepartmentwithSuccess:(void (^)(APILogOnDeparment *logOnDepartment)) successBlock
                           failure:(void (^)( NSError *error)) failureBlock;
@end
